﻿using System;

namespace ExFlash.Tags
{
    public class JPEGTablesTag : Tag
    {
        public Byte[] JPEGData
        {
            get;
            protected set;
        }

        public JPEGTablesTag(int len, int offset)
            : base(TagCodes.JPEGTables, len, offset)
        {

        }

        public override void SwfDeserialize(BinaryBitReader reader)
        {
            JPEGData = new Byte[TagLength];
            reader.Read(JPEGData, 0, TagLength);
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }

}
